function gridMainContainer_CreateFcn(h, e)
%MAINCONTAINER_CREATEFCN Summary of this function goes here
%   Detailed explanation goes here

handles = guihandles(h);
fig= handles.dhaqtool;

% Create a stackpanel with 2 containers. 1st containing preview area. 2nd
% containg toolspanel 3rd may contain a statusbar

set(h, 'gridsize',[3 1]);
setappdata(h, 'rowdefinitions', [0.85, 0.15, 0]);
setappdata(h, 'columndefinitions', [NaN]);
setappdata(h, 'resizefcn', get(h, 'resizefcn'));
set(h, 'resizefcn', @uigridcontainer_ResizeFcn);

uiflowcontainer('v0', 'parent', h, 'handlevisibility', 'on', 'createfcn', @gridMonitors_CreateFcn, 'tag', 'gridMonitors');
uigridcontainer('v0', 'parent', h, 'CreateFcn', @gridToolPanel_CreateFcn);

%Look for Statusbar plugins
PluginFiles= getappdata(fig, 'PluginFiles');
PluginCount= getappdata(fig, 'PluginCount');


[Value_List List_Length]= plugins_ParseFcn(PluginFiles, PluginCount, 'Status Bar', 'Content', 'Height');

for i= 1:List_Length
    GenerateFcn= Value_List{i, 1};
    Height= str2num(Value_List{i, 2}); %#ok<ST2NM>
    if isempty(Height), Height= 20; end
    setappdata(h, 'rowdefinitions', [0.85, 0.15, Height]);
    h_stautusbar= eval(GenerateFcn);
    set(h_stautusbar, 'parent', h);
end

end

